﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ajayumi.develop.win32.Transport.WCF.Services.DataContracts
{
    /// <summary>
    /// 文件传输数据契约类
    /// Author  : 黄乙冬
    /// Date    : 2011-08-28
    /// </summary>
    [DataContract]
    public class TransFileInfo : TransFileBaseInfo
    {
        /// <summary>
        /// 保存路径
        /// </summary>
        [DataMember]
        public string SavePath { get; set; }

        /// <summary>
        /// 传输动作
        /// </summary>
        [DataMember]
        public TransportAction TransportAction { get; set; }

        /// <summary>
        /// 偏移量
        /// </summary>
        [DataMember]
        public long Offset
        {
            get;
            set;
        }

        /// <summary>
        /// 一次传输的数据
        /// </summary>
        [DataMember]
        public byte[] Data
        {
            get;
            set;
        }
    }
}
